package com.lilinling.yinzhi.order.feign;

import com.lilinling.yinzhi.order.vo.OrderConfirmVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("yinzhi-demand")
public interface DemandFeignVo {
    /**
     * 根据id获取需求信息
     */
    @ApiOperation("根据id获取需求信息")
    @GetMapping("/{demandId}/addDemand")
    OrderConfirmVo getAddDemandVoByDemandId(@PathVariable("demandId") Long demandId);
}
